package gitee_hook

import (
	"fmt"
	"testing"
	"time"
)

func TestParseTime(t *testing.T) {
	tt, err := time.Parse(time.RFC3339, "2020-01-01T03:00:22+08:00")
	if err != nil {
		t.Error(err)
		t.FailNow()
	}
	timeStr := tt.Format(time.RFC3339)
	fmt.Println(timeStr, tt.UnixNano()/1e6)
}
